<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8">
		<title>撤销申请</title>
		<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css" />
		<link rel="stylesheet" type="text/css" href="../../static/css/me.css" th:href="@{/css/me.css}"/>
	</head>
	<body>
		<!-- 主体 -->
		<div th:each="cx:${cx}"  class="ui container margin-t-small">
			<form class="ui form"  th:action="@{/cxbyid}" method="post">

				<input type="hidden" name="id" th:value="${cx.id}">
				<input type="hidden" name="name" th:value="${cx.name}">
				<div class="ui segment padded-lr-larg">
					<p>姓名：<span th:text="${cx.name}">www</span></p>
					<p>学号：<span th:text="${cx.sno}">www</span></p>
					<p>班级：<span th:text="${cx.grades}">www</span></p>
					<p>日期：<span th:text="${cx.recordTime}">www</span></p>
					<p>状态：<span th:text="${cx.state}">www</span></p>
					<div th:if="${cx.remarks} ne null">
						<p>原因：<span th:text="${cx.remarks}">www</span></p>
						<p>是否同意：<span th:text="${cx.opinion}?'同意':'未同意'">www</span></p>
					</div>
					<div th:if="${cx.remarks} eq null">
						<p>原因：</p>
						<div class="field">
							<textarea name="remarks"></textarea>
						</div>
					<div class="ui right aligned basic segment">
						<a th:href="@{/record}" class="ui button" >返回</a>
						<button type="submit" class="ui blue button">提交</button>
					</div>
					</div>
				</div>
			</form>
		</div>



		<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
		<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
		<script>
			$('.ui.dropdown').dropdown();
			$('.ui.form')
					.form({
						fields: {
							remarks: {
								identifier: 'remarks',
								rules: [{
									type: 'empty',
									prompt: '请输入日期'
								}]
							}
						}
					});
		</script>
	</body>
</html>
